add_repositories("private-repo https://gitee.com/SmartSmallBoy/private-xmake-repo.git")

add_rules("mode.debug", "mode.release")

includes("xmake/toolchain.lua")
includes("base")
includes("core")
includes("utility")
includes("service")
includes("adapter")
includes("framework/native/unified_collection")

add_requires("hilog", {version = "0.0.4", configs = {shared = true}})
add_requires("c_utils", {version = "0.0.1", configs = {shared = true}})
add_requires("zlib", {version = "1.3.1", configs = {shared = true}})
add_requires("cJSON", {version = "1.7.18", configs = {shared = true}})
add_requires("minizip", {version = "1.3.1", configs = {shared = true}})
add_requires("sysevent", {version = "0.0.1", configs = {shared = true}})
add_requires("jsoncpp", {version = "1.9.5", configs = {shared = true}})
add_requires("boundscheck", {version = "v1.1.16", configs = {shared = true}})
add_requires("ffrt", {version = "0.0.1", configs = {shared = true}})
add_requires("faultloggerd", {version = "0.0.1", configs = {shared = true}})
add_requires("openssl3", {version = "3.3.1", configs = {shared = true}})

set_languages("c++17")
add_defines("is_ohos=1", "getprocpid=getpid", "getproctid=gettid", "self_cut")
target("HIVIEW")
    set_kind("binary")
    add_files("main.cpp")
	add_deps(
        "logger",
        "hiview_base",
        "hiview_utility",
        "hiview_core",
        "hiview_service"
    )
    add_packages(
        "ffrt",
        "c_utils",
        "hilog",
        "cJSON",
        "faultloggerd"
    )
